<?php
 mb_internal_encoding("utf-8");
 require "../document/class_corpus.php";
 require "../document/class_document.php";
 require "../document/class_document_xml.php";

 require "../files/tool_files_dirs.php";

 require "../misc/class_tag.php";

 require "../tree/class_tree.php";
 require "../tree/class_tree_xhtml.php";
 require "../tree/class_structure.php";
 require "../tree/tool_tree.php";

 require "../array/tool_array.php";

 require "../maths/tool_maths.php";
 require "../pear_graph/tool_pear_graph.php";

 require "./tool_string.php";
 require "./class_segment.php";

 $start=memory_get_usage();
 echo "\n";

$factory_mot=new factory_mot();
$str1="le chat";
$str2="le chien";
$factory_mot->get_all_mots($str1);
$factory_mot->get_all_mots($str2);
//$factory_mot->get_all_mots($str2);

$all_seg=$factory_mot->__get_array_segment();

$str1="aabccc";

foreach($all_seg as $seg){
  echo $seg;
  echo "\n";
}

 $div=(memory_get_usage()-$start)/12;
 echo $div;
 echo "\n";
?>
